﻿using System.Drawing;

namespace Qting.AOI.Serialize
{
    public class tagBadBoard
    {
        public int Board { get; set; }
        public Rectangle Rect { get; set; }
        private Rectangle MarkRect { get; set; }
        public bool IsBad { get; set; }
        public bool IsBack { get; set; }
        public bool IsDual { get; set; }
        public int UnionBoard { get; set; }

        /// <summary>
        /// 设置MARK坐标
        /// </summary>
        public void setMarkRect()
        {
            #region ***** 设置MARK坐标 *****

            MarkRect = Rect;

            #endregion
        }

        /// <summary>
        /// 设置MARK坐标
        /// </summary>
        public Rectangle getMarkRect()
        {
            #region ***** 获取MARK坐标 *****

            return MarkRect;

            #endregion
        }

        /// <summary>
        /// 应用MARK坐标
        /// </summary>
        public void applyMarkRect()
        {
            #region ***** 应用MARK坐标 *****

            Rect = MarkRect;

            #endregion
        }
    }
}
